# # 定义person类
# class Person():
#
#     # 构造函数，用于为成员变量赋初始值
#     def __init__(self, nick, age, height):
#         self.name = nick
#         self.age = age
#         self.height = height
#         # 不使用self.属性名的方式去访问对应的属性
#         print(name)
#
#     def introduce_self(self):
#         print("hello,my name is %s,my age is %d and i'm %d height" % (self.name, self.age, self.height))
#
#
# # 实例化对象的时候 使用类名(),即可完成实例化
# person = Person('cendy', 25, 175)
# person.introduce_self()

# 定义person类
class Person():
    # 构造函数，用于为成员变量赋初始值
    def __init__(self, nick, age, height):
        self.name = nick
        self.age = age
        self.height = height


def introduce_self(self):
    print("hello,my name is %s,my age is %d and i'm %d height" % (self.name, self.age, self.height))


Person.introduce_self()
